package com.bgs.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bgs.entity.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Recyclingorder对象", description="回收订单表")
public class RecyclingorderVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "ro_id", type = IdType.AUTO)
    private Integer roId;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "联系人")
    private String contactsName;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "上门时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    private LocalDateTime getTime;

    @ApiModelProperty(value = "回收内容（可以多个内容 用逗号隔开）")
    private String content;

    @ApiModelProperty(value = "预计重量（单位是千克）")
    private Double weight;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "门店id")
    private Integer storeId;

    @ApiModelProperty(value = "订单编号（uuid+当前时间）")
    private String number;

    @ApiModelProperty(value = "超时时间")
    private LocalDateTime overTime;

    @ApiModelProperty(value = "经度")
    private Double roLongitude;

    @ApiModelProperty(value = "纬度")
    private Double roLatitude;

    @ApiModelProperty(value = "订单状态（1是已预约 2是已接单 3是已到达 4是已结算 5是已评价）")
    private Integer roType;

    @ApiModelProperty(value = "骑手id")
    private Integer riderId;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    private LocalDateTime creationTime;

    @ApiModelProperty(value = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除（y是删除 n是未删除）")
    private String isDel;

    private User user;

    @ApiModelProperty(value = "相差时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    private LocalDateTime differenceTime;

    private Integer d;
    private Integer h;
    private Integer m;
    private Integer s;

    private Integer sumTime;

    private Integer count;

    @ApiModelProperty(value = "纬度")
    private Double distance;

}
